package com.mzy.datepackage.M2022.Aug.thirty_first;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "kafka消息客户端资源")
public class KafkaClient extends QuoteParams {

    /**
     * ip地址
     */
    @ApiModelProperty(value = "IP地址")
    private String ip;

    /**
     * 客户端名称
     */
    @ApiModelProperty(value = "客户端名称")
    private String name;

    /**
     * 端口
     */
    @ApiModelProperty(value = "客户端端口")
//    @Range(min = 1,max = 65535,message = "端口范围在1-65535之间")
    private int port;

    /**
     * topic
     */
    @ApiModelProperty(value = "客户端topic")
    private String topic;

    /**
     * 类型, 0: 消费, 1: 生产
     */
    @ApiModelProperty(value = "类型, 0:消费, 1:生产")
//    @Range(min = 0,max = 1,message = "类型只能填写0/1")
    private int type;

    /**
     * 说明
     */
    @ApiModelProperty(value = "说明")
    private String info;

    /**
     * 唯一ID
     */
    @ApiModelProperty(value = "唯一ID")
    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private String uniqueId;
}
